package com.sgb.kjwl.api.net;

import com.sgb.kjwl.BuildConfig;
import com.sgb.kjwl.api.service.CommonAPI;
import com.sgb.net.core.BaseCompatibleNet;

import okhttp3.OkHttpClient;

/**
 * 公共api
 * @author cyj
 */
public class CommonNet extends BaseCompatibleNet {

    private final CommonAPI mService = getService(CommonAPI.class, BuildConfig.BASE_URL_SP);

    /**
     * Builder 网络配置处理
     * @see OkHttpClient.Builder    所有的基于okhttp3网络配置属性可以查看这里
     * @param builder
     */
    @Override
    protected void handleBuilder(OkHttpClient.Builder builder) {}

    public CommonAPI getCommonAPI() {
        return mService;
    }
}
